package servlet;

import java.io.IOException;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import model.GuestBook;

@WebServlet("/el")
public class el extends HttpServlet {
	private static final long serialVersionUID = 1L;

	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		System.out.println("/el 을 요청했습니다 "); 
		request.setAttribute("id","request id의 value");
		request.setAttribute("pw","request pw의 value");
		GuestBook book=new GuestBook(1, "hello");
		request.setAttribute("book	",book);
		request.getRequestDispatcher("5/elExam.jsp?name=kim")
			.forward(request, response);
		
	}

}
